//
//  WXApiManager.m
//  YiBaoStore
//
//  Created by 吕清毅 on 2018/10/25.
//  Copyright © 2018年 小河. All rights reserved.
//

#import "WXApiManager.h"

@implementation WXApiManager

#pragma mark - LifeCycle

+ (instancetype)sharedManager {
    static dispatch_once_t onceToken;
    static WXApiManager *instance;
    dispatch_once(&onceToken, ^{
        instance = [[WXApiManager alloc] init];
    });
    return instance;
}

#pragma mark - WXApiDelegate
- (void)onResp:(BaseResp *)resp {
    if ([resp isKindOfClass:[PayResp class]]) {
        PayResp *response = (PayResp *)resp;
        if ([_delegate respondsToSelector:@selector(managerDidReceviePayResult:)]) {
            [_delegate managerDidReceviePayResult:response];
        }
    }
}

- (void)onReq:(BaseReq *)req{
    
}

@end
